Creating a Spin List using Static Data

Description

A Spin List control can be based on Static data or a Data Series. When a Spin List control is populated with static data, the values are set at design time in the UX Builder.

Creating a Spin List Control with Static Data

The easiest way to specify values in a spin list control is using Static Data. Static spin list data is defined at design time.

To specify the data in the Spin List control, click the smart field for the Static data Spin List Property to open the "Spin List - Static Choices" dialog.

images/static1.png

Define the list of choices in the Spin List - Static Choices dialog with each option listed on its own line. An optional stored value can be specified separately from the text shown in the Spin List control. To specify a stored value that is different from the displayed value, use this format:

DisplayValue|StoredValue

For example, the image below shows a list of months.

images/static2.png

If you wanted to store the month as a number starting with January = 1, you could define the list of static choices as follows:

January|1
February|2
March|3
April|4
May|5
June|6
July|7
August|8
September|9
October|10
November|11
December|12

The buttons along the bottom of the Static List - Static Choices dialog can be used to sort the list, insert a predefined List of choices, or save the list of choices. You can also manage saved lists by clicking the Manage Lists button.

Saved lists can not only be used to populate Spin Lists, they can also be used to populate Checkboxes, RadioButtons, Dropdownboxes, and the list of options for TextBox controls configured to include an Edit-Combo or Auto-Suggest lookup.

images/staticTools.png

Once the static choices are defined, the Spin List will display the options in the order defined in the Static List - Static Choices dialog.

images/static3.png

See Also